<template>
    <div>
        <el-form :model="formAudit" label-width="100px">
            <el-form-item label="意见">
                <el-radio-group v-model="formAudit.info">
                    <el-radio label="同意" value="Y"></el-radio>
                    <el-radio label="不同意" value="N"></el-radio>
                </el-radio-group>
            </el-form-item>
            <el-form-item label="备注">
                <el-input type="textarea" style="width: 500px" v-model="formAudit.remark"></el-input>
            </el-form-item>
            <el-form-item>
                <el-button type="primary" @click="audit">提交</el-button>
            </el-form-item>
        </el-form>
    </div>
</template>

<script>
    export default {
        data() {
            return {
                formAudit: {
                    fid: '',
                    flowNodeId: '',
                    userId: '',
                    remark: '',
                    info: '',
                }
            }
        },
        methods: {
            init(data) {
                this.formAudit.fid = data.fid
                this.formAudit.flowNodeId = data.current
            },
            audit() {
                this.$emit('audit',this.formAudit)
            }
        }
    }
</script>

<style scoped>

</style>
